
/**
 * @fileoverview  The stories container.
 * @author johannes.nel@gmail.com (Johan)
 * Date: 2012/03/28
 * Time: 10:51 AM
 */




goog.provide('lfpug.ui.component.TasksComponent');

goog.require('lfpug.ui.component.list.BaseList');
goog.require('lfpug.ui.renderer.TasksRenderer');



/**
 * @constructor
 * @extends {lfpug.ui.component.list.BaseList}
 *
 * @param {lfpug.ui.type.Model} model
 *        The adaptor.
 *
 * @param {lfpug.ui.Renderer=} opt_renderer
 *        Optional renderer.
 */
lfpug.ui.component.TasksComponent = function(model, opt_renderer) {
  goog.base(this, model, opt_renderer);
};
goog.inherits(
    lfpug.ui.component.TasksComponent,
    lfpug.ui.component.list.BaseList
);


/** @override */
lfpug.ui.component.TasksComponent.prototype.setDefaultRenderer = function() {
  var renderer = lfpug.ui.renderer.TasksRenderer.getInstance();
  this.setRenderer(renderer);
};

goog.ui.registry.setDecoratorByClassName(
    lfpug.ui.renderer.TasksRenderer.CSS_CLASS,
    function() {
      return new lfpug.ui.component.TasksComponent(null);
    });
